Moves a touch action to a location.
Use this statement with the TouchDown and TouchUp statements to perform tap, swipe, and pinch zoom actions in scripts that test Windows 8 applications and to test applications that can interpret touch actions.
Note: This statement is not recorded and must be manually added to scripts.
Syntax
TouchMove(X, Y, ...)
Arguments
You can specify a maximum of 16 locations.
| Argument | Description |
|---|---|
| X | X coordinate to indicate the horizontal pixel location to move the touch action, relative to the screen or a window or control. |
| Y | Y coordinate to indicate the vertical pixel location to move the touch action, relative to the screen or a window or control. |
Supported objects
Browser, Button, Calendar, Cell, CheckBox, ColumnHeader, ComboBox, ContextMenu, Control, DateTimePicker, EditBox, Grid, HTMLElement, HTMLLink, HTMLTable, Image, Item, Label, Link, ListBox, ListView, Menu, NavigationField, PopupMenu, ProgressBar, RadioButton, Row, RowHeader, ScrollBar, Slider, SpinBox, SubItem, Tab, TabBar, ToolBar, Tree, Window
Example
' Simulates a swipe
TouchDown(100, 100)
TouchMove(200, 100)
TouchUp(200, 100)